liblockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:32:11 +0000 (21:32 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Fri, 9 Feb 2018 12:58:52 +0000 (12:58 +0000)
commit7e22a878909caf1e30816f0f1b45eef60aa00c0d
treeac5e9e5a4850237756eb16100b1b9f2ac15821a6
parentce64a9018d5f83a614acff72e38f0c618058ede2
liblockdep: Fix 'defined but not used' warning for init_utsname()

We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.

Since it is only used by lockdep.c, define it in there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-defined-but-not-used-warning-for-init.patch
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h